<template>
  <div>
    <h4>科技</h4>
  </div>
</template>

<script>
export default {
  mounted () {
    console.log(this.$store.state.userInfo)
    const name = this.$store.state.userInfo.userName
    const id = this.$store.state.userInfo.userId
    this.$notify({
      title: 'vuex',
      message: 'id:' + id + ' ' + 'name: ' + name,
      duration: 2000
    })
  }
}
</script>

<style scoped>

</style>
